package com.jingdianjichi.subject.application.convert;

import com.jingdianjichi.subject.application.dto.SubjectInfoDTO;
import com.jingdianjichi.subject.domain.entity.SubjectInfoBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 标签DTO的转换
 */
@Mapper
public interface SubjectInfoDTOConverter {

    SubjectInfoDTOConverter INSTANCE = Mappers.getMapper(SubjectInfoDTOConverter.class);


    SubjectInfoBo convertDTOtoBo(SubjectInfoDTO subjectInfoDTO);

    SubjectInfoDTO convertBotoDTO(SubjectInfoBo subjectInfoBo);
    List<SubjectInfoDTO> convertBOToDTOList(List<SubjectInfoBo> subjectInfoBos);
}
